package com.ljh.mall.config;

import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author ：刘剑鸿
 * @date ：Created in 2023/3/27 23:51
 * @description：
 * @modified By：
 * @version: $
 */
public class MyWebViewConfig implements WebMvcConfigurer {
    /**
     * 视图映射器
     * @param registry
     */
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/login.html").setViewName("/login");
        registry.addViewController("/reg.html").setViewName("/reg");
    }
}
